import java.util.Scanner;

public class Exer3_8_14 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入一个数：");
        int num = input.nextInt();
        int n;
        int result=0;
        while(num！=0){
            n=num%10;
            result=result*10+n;
            num=num/10;
        }
        System.out.println("反转后的数为："+(result+1024));
    }
}
